<template>
  <div class="myTop">
    <!-- <div class="top-left">{{ value }}</div> -->
    <div class="top-right">
      <el-button @click="add">退出</el-button>
    </div>
  </div>
</template>

<script>
export default {
  // props: ["value", "userImg"],
  name: "home",
  data() {
    return {
      list: [],
      path: "/users",
    };
  },
  mounted() {},
  methods: {
    add() {
      this.$router.push("/login");
    },
  },
};
</script>

<style lang="scss" scoped>
.myTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8vh;
  background-color: #eff2f7;
  padding: 0 10px;
  .top-left {
    font-size: 14px;
    color: #97a8be;
  }
  .top-right {
    width: 3vw;
    height: 5vh;
    padding-right: 30px;
    img {
      width: 2.5vw;
      height: 5vh;
      border-radius: 50%;
      cursor: pointer;
    }
  }
}
</style>
